package com.edu.mapper.shop;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.entity.shop.*;
import com.edu.entity.user.SysUser;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface VideoMapper extends BaseMapper<Video> {

    List<Video> findListByName(Vo vo);
    Integer findCount(String brief);

    SysUser findUserByPrin(String username);
    void insertCollect(Collect collect);

    List<Video> findVideoRecent();
    List<Video> findVideoMost();
    List<Video> findListByTag(String tag);
    List<Video> findListByTag2(String tag);

    Integer findPid(Integer pid);
    List<Video> findVideoPid(Integer id);

    List<Comments> findCommentsById(Integer id);

    Integer findGraAndSubCount(VoGraAndSub voGraAndSub);
    List<Video> findGraAndSubListByName(VoGraAndSub voGraAndSub);
    List<Video> pageList();
    Video top(int id);
}
